package com.imooc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.bo.DataDictionaryBO;
import com.imooc.pojo.DataDictionary;
import com.imooc.utils.PagedGridResult;

import java.util.List;

/**
 * <p>
 * 数据字典表 服务类
 * </p>
 *
 * @author liansen
 * @since 2023-03-28
 */
public interface DataDictionaryService extends IService<DataDictionary> {

    void createDataDictionary(DataDictionaryBO dataDictionaryBO);

    void updateDataDictionary(DataDictionaryBO dataDictionaryBO);

    PagedGridResult getDataByLimit(Integer page, Integer limit, String typeName, String itemValue);

    DataDictionary getItem(String dictId);

    void delete(String dictId);

    List<DataDictionary> getDataByCode(String typeCode);

    List<DataDictionary> getData(String[] keys);
}
